what happen when a star explodes